package isThree;

public class Solution {
    public boolean isThree(int n) {
        int count=0;
        int k=(int)Math.sqrt(n);
        for (int i = 1; i <=k ; i++) {
            if(n%i==0){
                if(n/i==i){
                    count++;
                }else{
                    count+=2;
                }
            }
        }
        return count==3;
    }
}
